package com.wjq.auth2.web;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.security.Principal;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wjq
 * @since 2020-05-21
 */
@RestController
@RequestMapping("/user")
public class UserController {


    @GetMapping("/info")
    public Principal user(Principal member) {

        return member;
    }
}

